home *** CD-ROM | disk | FTP | other *** search
/ VRML 2 - Moving 3D Graphics / VRML 2 - Moving 3D Graphics.iso / vrmlbook / source / vr2-3-33a.wrl < prev    next >
Encoding:
Text File  |  1997-05-13  |  907 b   |  42 lines

  1. #VRML V2.0 utf8
  2. #vr2-3-33.wrl
  3. #Piramid
  4. Shape {
  5.   geometry IndexedLineSet {
  6.     coord Coordinate {
  7.       point [ 
  8.          10  10 0, 
  9.         -10  10 0, 
  10.         -10 -10 0, 
  11.          10 -10 0,
  12.           0   0 15 
  13.       ]
  14.     }
  15.     coordIndex [ 
  16.           0, 1, -1,   # line 0
  17.           1, 2, -1,   # line 1
  18.           2, 3, -1,   # line 2
  19.           3, 0, -1,   # line 3
  20.           4, 0, -1,   # line 4
  21.           4, 1, -1,   # line 5
  22.           4, 2, -1,   # line 6
  23.           4, 3, -1    # line 7
  24.     ]
  25.     color Color {
  26.       color [
  27.           1 0 0,      # color 0
  28.           0 1 0,      # color 1
  29.           0 0 1,      # color 2
  30.           1 1 0,      # color 3
  31.           1 0 1,      # color 4
  32.           0 1 1,      # color 5
  33.           1 1 1,      # color 6
  34.           0.5 0.5 0.5 # color 7
  35.       ]
  36.     }
  37.     colorIndex [ 1,1,1,2,3,3,4,5 ]
  38.     colorPerVertex TRUE
  39.   }
  40. }
  41.  
  42.